<?php
$login_style = 'style="height:204px;"';
if ($this->session->userdata('user_id') == TRUE) {
    $login_style = 'style="height:150px;"';
}
if ($login_error) {
    $login_style = 'style="height: 254px;"';
}
if ($validate_error) {
    $login_style = 'style="height: 274px;"';
}
?>
<div id="titre_login">	CONNEXION CLIENT</div>
<form id="formLogin" name="formLogin" method="post" action="<?php echo site_url('user/login'); ?>">
    <table id="form_login">
        <tr>
            <td>Identifiant</td><td><input type="text" name="email_login" class="input_login"/></td>
        </tr>
        <?php if (form_error('email_login')): ?>
            <tr>
                <td colspan="2"><?php echo form_error('email_login') ?></td>
            </tr>
        <?php endif; ?>
            <tr>
                <td>Mot de passe</td><td><input type="password" name="pass_login" class="input_login"/></td>
            </tr>
        <?php if (form_error('pass_login')): ?>
                <tr>
                    <td colspan="2"><?php echo form_error('pass_login') ?></td>
                </tr>
        <?php endif; ?>
            </table>
            <input type="submit" name="submit" id="submit" value ="Connexion"/>
        </form>
<?php
                if (isset($login_error) && ($login_error != NULL)) {
                    echo $login_error;
                }
?>
                <div id="pass_oublier">
                    <a id="various3" href="<?php echo root_url('animus') . ('index.php/accueil/register'); ?>">Inscription</a> /
                    <a href="<?php echo root_url('animus') . ('index.php/accueil/forgot_pass'); ?>">Mot de passe oublié?</a>
</div><!--END pass_oublier-->
